package guoan.domain;

import java.io.Serializable;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.joda.time.DateTime;

/**
 * 
 */
@Entity
@Table(name = "coach_item_check")
public class CoachItemCheck implements Serializable {
	private static final long serialVersionUID = 1L;
    @EmbeddedId
	private CoachItemCheckPK id;

	public CoachItemCheck() {
        super();
	}

	public CoachItemCheck(String openHours, Long coachId, DateTime examTime, Long trainId) {
		this.id = new CoachItemCheckPK(openHours, coachId, examTime, trainId);
	}

	public CoachItemCheckPK getId() {
		return id;
	}

	public void setId(CoachItemCheckPK id) {
		this.id = id;
	}

}